package com.zdb.demo.spark.sql.parser;

import org.apache.spark.sql.catalyst.plans.logical.LogicalPlan;
import org.apache.spark.sql.execution.SparkSqlParser;
import org.apache.spark.sql.internal.SQLConf;

public class SparkSqlParserTest {
    public static void main(String[] args) {
        SparkSqlParser parser = new SparkSqlParser(new SQLConf());
        LogicalPlan logicalPlan = parser.parsePlan("select *, 'a' aa from student where age>18");

        System.out.println(logicalPlan.treeString());
    }
}
